n = int(input())
result = 1
for i in range(2, n + 1):
    if i % 2 == 0:
        result += i
    else:
        result -= i
print(result)